<?php if($row['systatus'] == 1){
    $status = '营业中';
}else{
    $status = '休业中';
}?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <?php include_once MvcReg::$_moduleName . '/views/layout/head.php'; ?>
</head>

<body>
<?php include_once MvcReg::$_moduleName . '/views/layout/woody-prompt.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/layout/header.php'; ?>
<div id="main">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <?php include_once MvcReg::$_moduleName . '/views/layout/left_menu.php'; ?>
            </div>
            <div class="col-md-10">
                <div class="right-content">
                    <h3>
                        <ol class="breadcrumb"><li><a href="?md=manage&cl=store&at=company"><i class="fa fa-dashboard"></i><?php echo $menu["breadcrumb_current"]?></a><li class="active"><?php echo ((!empty($id) && ($id > 0)) > 0 ? '%{EDIT}%' : '%{ADD}%')?></li></li></ol>
                    </h3>
                    <br>
                    <form class="form-horizontal" action="<?php echo $url?>" method="post" autocomplete="off">
                        <input type="hidden" name="store_id"  value="<?php echo $row['id'] ?>">
                        <div class="row">
                            <div class="col-sm-12">
                                <input type="hidden" name="company_id" value="<?php echo $row['id'] ?>">
                                <dl class="dl-horizontal">
                                    <dt>公司代码：</dt>
                                    <dd><?php echo $row['code'] ?></dd><br/>
                                    <dt>公司名称：</dt>
                                    <dd><?php echo $row['name'] ?></dd><br/>
                                    <dt>密码：</dt>
                                    <?php if($row['password']){
                                        $b = '<input type="button" id="editP" value="修改密码" onclick="changeP()">';
                                        $d = 'style="display:none"';
                                    }?>


                                    <dd ><?php echo $b;?><input <?php echo $d;?> type="password" value="" name="pwd" id="pwd"></dd><br/>
                                    <script>
                                        function changeP() {
                                            $("#pwd").show();
                                            $("#editP").hide();
                                        }
                                    </script>
                                    <hr/>
                                    <div class="form-group" style="text-align: center">
                                        <div class="col-md-6" style="font-weight: 800;font-size: 20px;">顺丰</div>
                                    </div>

                                    <div class="form-group">
                                        <label for="addtime" class="col-md-2 control-label">
                                            <dt> 同城开发ID(dev_id)：</dt>
                                        </label>
                                        <div class="col-md-3">
                                            <input type="text" name="Express[sf_dev_id]" value="<?php echo $row['sf_dev_id'] ?>"  class="form-control " placeholder=""  />
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="addtime" class="col-md-2 control-label">
                                            <dt> 密钥(dev_key)：</dt>
                                        </label>
                                        <div class="col-md-3">
                                            <input type="text" name="Express[sf_dev_key]" value="<?php echo $row['sf_dev_key'] ?>"  class="form-control " placeholder=""  />
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="addtime" class="col-md-2 control-label">
                                            <dt> 用户名(user_name)：</dt>
                                        </label>
                                        <div class="col-md-3">
                                            <input type="text" name="Express[sf_user_name]" value="<?php echo $row['sf_user_name'] ?>"  class="form-control " placeholder=""  />
                                        </div>
                                    </div>
                                </dl>
                            </div>
                        </div>
                        <hr/>
                        <div class="form-group">
                            <label for="stacode" class="col-md-2 control-label">
                            </label>
                            <div class="col-md-4">

                                <button type="submit" id="sub"  class="btn btn-success">保存</button>
                            </div>
                            <span class="col-md-6"></span>
                        </div>
                        <input type="hidden" id="page" name="page" value="<?php echo $page?>"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<?php include_once MvcReg::$_moduleName . '/views/layout/footer.php'; ?>
</body>
</html>

